/* Copyright (C) 2003-2005  Martin Förg

 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Contact:
 *   mfoerg@users.berlios.de
 *
 */

#include "config.h"
#include "general_matrix.h"
#include "symmetric_matrix.h"
#include "blas_extensions_double.h"
#include <iostream>
#include <sstream>

#define FMATVEC_NO_INITIALIZATION
#define FMATVEC_NO_BOUNDS_CHECK

namespace fmatvec {


  template <>
  template <>
  void Matrix<General, double>::deepCopy(const Matrix<General, double> &A) { 
    myblas_dcopy(A.blasTrans(), blasTrans(), m, n, A.ele, A.ldim(), ele,ldim());
  }

  template <>
  template <>
  void Matrix<General, double>::deepCopy(const Matrix<Symmetric, double> &A) { 
    for(int i=0; i<A.size(); i++) {
      operator()(i,i) = A(i,i);
      for(int j=i+1; j<A.size(); j++)
	operator()(i,j)=operator()(j,i)=A(i,j);
    }
  }

}
